package com.nj.dms.bean;

import java.util.Date;

/**
 * 定义文章类
 * 
 * @author Administrator
 *
 */
public class Essay {

	private int id;
	private String userName;
	private String title;
	private String digest;// 摘要
	private String content;
	private String version;
	private int thick;// 密级：个人：1、部门：2、企业：3、公告：4
	private int audit;// 审批：0待审核，1通过，2未通过
	private Date publishDate;
	private Date updateDate;

	@Override
	public String toString() {
		return "Essay [id=" + id + ", userName=" + userName + ", title=" + title + ", digest=" + digest + ", content="
				+ content + ", version=" + version + ", thick=" + thick + ", audit=" + audit + ", publishDate="
				+ publishDate + ", updateDate=" + updateDate + "]";
	}

	public Essay() {

	}

	public Essay(String userName, String title, String digest, String content, String version, int thick, int audit,
			Date publishDate, Date updateDate) {
		this.userName = userName;
		this.title = title;
		this.digest = digest;
		this.content = content;
		this.version = version;
		this.thick = thick;
		this.audit = audit;
		this.publishDate = publishDate;
		this.updateDate = updateDate;
	}

	public Essay(int id, String title, String digest, String content, String version, int thick, int audit,
			Date updateDate) {
		super();
		this.id = id;
		this.title = title;
		this.digest = digest;
		this.content = content;
		this.version = version;
		this.thick = thick;
		this.audit = audit;
		this.updateDate = updateDate;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDigest() {
		return digest;
	}

	public void setDigest(String digest) {
		this.digest = digest;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public int getThick() {
		return thick;
	}

	public void setThick(int thick) {
		this.thick = thick;
	}

	public int getAudit() {
		return audit;
	}

	public void setAudit(int audit) {
		this.audit = audit;
	}

	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

}
